﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Web;
using System.Web.Helpers;
using System.Web.Mvc;
using PortalWeb.Common.UI;

namespace PortalWeb.Areas.Admin.Controllers
{
    [Navbar("系统监控", "系统管理")]

    public class MonitorController : Controller
    {
        // GET: Admin/Monitor
        public ActionResult Index()
        {
            return View();
        }

        public ActionResult Chart2()
        {
            var chart = new Chart(width: 500, height: 300, theme: ChartTheme.Blue)
                .AddSeries(
                    chartType: "bar",
                    legend: "Rainfall",
                    xValue: new[] { "南京", "武汉", "上海", "苏州", "沈阳" },
                    yValues: new[] { "95", "80", "70", "72", "92" })
                .AddTitle("分公司年末预测率汇总")
                .SetXAxis(title: "分公司")
                .SetYAxis(title: "预测率(%)");
            chart.Write();
            return null;
        }
    }
}